<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../css/layer.css">
<%@ include file="../general_fen.jsp"%>
</head>
<body class="body_in" id="body_id">
	<!-- <div class="content"> -->
	<div class="row"
		style="background-color: rgb(243, 244, 245); margin: 0px 15px;">
		<div
			style="height: 40px; background-color: rgb(243, 244, 245); margin: 5px 0;">
			<h4 style="float: left; padding-left: 10px; overflow: hidden;">积分规则分类管理</h4>
			<!--功能区按钮-->
			<div
				style="background-color: rgb(243, 244, 245); height: 40px; width: -moz-max-content; float: right; margin-right: 15px; padding: 5px 0px 0px; border-radius: 2px; overflow: hidden;">
				<a data-original-title="添加" class="btn btn-info btna"
					data-toggle="tooltip" title=""><span
					class="glyphicon glyphicon-plus" data-toggle="modal"
					data-target="#myModal_1"></span></a> <a data-original-title="禁用"
					class="btn btn-danger btn-sm btna" data-toggle="tooltip"
					onclick="delCT()"><span class="glyphicon glyphicon-minus-sign"
					data-target="#myModal_4" data-toggle="modal"></span></a> <a
					data-original-title="修改" class="btn btn-success btn-sm btna"
					data-toggle="tooltip" title="" onclick="getCT()"><span
					class="glyphicon glyphicon-pencil" data-toggle="modal"
					data-target="#myModal_1"></span></a> <a data-original-title="搜索"
					class="btn btn-ss btn-sm btna" data-toggle="tooltip" title=""><span
					class="glyphicon se_gly glyphicon-search"></span></a>
			</div>
		</div>
		<div class="col-md-12" style="padding: 0px;">
			<!-- 列表页面 start -->
			<div class="box">
				<table class="table table-striped table-advance table-hover">
					<thead>
						<tr>
							<th><input type="checkbox" id="ck-all_1" name="ck-all_1">&nbsp;全选</th>
							<th>序号</th>
							<th>规则类型编号</th>
							<th>会员编号</th>
							<th>规则分类名称</th>
							<th>客户等级</th>
							<th>规则分类说明</th>
							<th>状态</th>
						</tr>
					</thead>
					<tbody id="data_list" class="list_in">

					</tbody>
				</table>
			</div>
			<!-- 列表页面 end -->
		</div>
	</div>
	<div class="pag_in pagination"></div>
	<!-- 弹出框 -->

	<!-- 新增弹出框 start -->
	<div class="tank" id="myModal_1">
		<div class="modal-content">
			<div class="modal-header" style="padding: 8px;">
				<a type="button" class=" btn btn-danger btn-sm btnb"
					data-dismiss="modal" aria-hidden="true" data-placement="bottom"
					data-toggle="tooltip" title="取消"> <span
					class="glyphicon glyphicon-off"></span>
				</a> <a type="button" href="javascript:insert();"
					class="btn btn-info btn-sm btnb" data-placement="bottom"
					data-toggle="tooltip" title="保存"> <span
					class="glyphicon  glyphicon-floppy-saved"></span>
				</a>
				<h4 class="modal-title" id="myModalLabel">基本信息</h4>
			</div>
			<div class="modal-body" style="padding: 15px 15px 0px;">
				<form id="creditsform" method="post">
					<input type="hidden" id="id" name="id">
					<table class="table table-bordered">
						<tbody>
							<tr>
								<td class="sty01">积分规则分类名称</td>
								<td class="sty01"><input type="text" name="creditsTypeName"
									class="form-control"></td>
							</tr>
							<tr>
								<td class="sty01">客户等级</td>
								<td class="sty01"><select name="userLevelId"
									id="userLevelId" class="form-control">
										<option value="UL00001">王者段位</option>
										<option value="UL00002">钻石段位</option>
										<option value="UL00003">黄金段位</option>
										<option value="UL00004">白银段位</option>
										<option value="UL00005">青铜段位</option>
								</select></td>
							</tr>
							<tr>
								<td class="sty01">积分规则分类说明</td>
								<td class="sty01"><input type="text"
									name="creditsTypeContent" class="form-control"></td>
							</tr>
							<tr>
								<td class="sty01">状态</td>
								<td class="sty01"><input type="radio" name="status"
									id="planing-status" value="1" checked="checked">开启</input>
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
									name="status" id="planing-status" value="0">禁用</input></td>
							</tr>
							<tr>
								<td class="sty01">备注</td>
								<td class="sty01"><input type="text" name="remarks"
									class="form-control"></td>
							</tr>
						</tbody>
					</table>
				</form>
			</div>
		</div>
	</div>
	<!-- 新增弹出框 end -->

	<!-- 搜索框开始-->
	<div class="se_area" style="position: fixed;">
		<div style="padding: 5px 15px 10px;" class="search_1">
			<form id="searchForm">
				<div style="margin: 5px;" id="se_cond">
					<div class="se_select">
						<span style="float: left; padding-top: 5px;">客户等级：</span>
						<div class="main_demo"
							style="width: auto; min-width: 150px !important; float: left;">
							<select class="params select2-offscreen" tag="w-params"
								name="userLevelId" tabindex="-1">
								<option value="">全部</option>
								<option value="DP000001">王者</option>
								<option value="DP000001">钻石</option>
								<option value="DP000001">黄金</option>
								<option value="DP000001">白银</option>
								<option value="DP000001">青铜B</option>
							</select>
						</div>
					</div>
					<div style="clear: both;"></div>
					<div class="se_date se_select">
						<span style="float: left; padding-top: 5px;">关键字：</span>
						<div class="input-group" style="border-radius: 3px; width: 80%;">
							<input style="border-radius: 3px;" id="keyWord" name="keyWord"
								class="text-green form-control input-g params" tag="w-params"
								placeholder="关键字..." type="text">
						</div>
					</div>
					<div class="se_select">
						<span style="float: left; padding-top: 5px;">状态：</span>
						<div class="main_demo"
							style="width: auto; min-width: 85px; float: left;">
							<select class="params select2-offscreen" tag="w-params"
								id="status" name="status" tabindex="-1">
								<option value="">全部</option>
								<option value="1">是</option>
								<option value="2">否</option>
							</select>
						</div>
					</div>
					<div style="clear: both;"></div>

					<a type="button" href="javaScript:search(1);" name="seach"
						id="search-btn" class="ascertain_btn">确定</a>

				</div>
			</form>
		</div>
	</div>
	<script type="text/javascript" src="../pointJs/creditsType.js"></script>
</body>
</html>
<script>
	$(function() {
		$('[data-toggle=tooltip]').tooltip();
	});
	/*
	$(function(){
	  var bg_in = window.parent.document.getElementById("bg").clientHeight;
	  $('.btn').click(function(){
		  alert(1);
		  bg_in.show();
	  })
		
	})*/
</script>






